<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="../../../common/common-jstl.jspf" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>考试试卷</title>
</head>
<body>
<style type="text/css">
    * {
        margin: 0;
        padding: 0;
        font-family: "Microsoft YaHei", "SimSun";
    }

    .container {
        width: 100%;
        margin: 0 auto;
        background-color: #F2F2F2;
    }

    .container .header {
        text-align: center;
        height: 100px;
        padding-top: 50px;
    }

    .content {
        margin-left: 100px;
        font-size: 14px;
    }

    .blank .bl {
        outline: none;
        border: none;
        background-color: #F2F2F2;
        border-bottom: 1px solid #A1A1A1;
        text-indent: 3px;
        width: 200px;
    }

    .subject > div > textarea {
        width: 624px;
        height: 125px;
        resize: none;
        outline: none;
    }

    .subject > div > span {
        position: relative;
        top: -108px;
    }
</style>

<div class="container">
    <input type="hidden" name="cdto.ruleId" value="${dto.rule.ruleId}"/>
    <input type="hidden" name="cdto.paper.courseId" value="${dto.paper.courseId}"/>
    <input type="hidden" name="cdto.paper.paperId" value="${dto.paper.paperId}"/>
    <div class="header">
        <h1>2016-2017度${dto.paper.paperName }试卷</h1><br/>
        <h3>考试时间:${dto.paper.examTime }&nbsp;&nbsp;&nbsp;&nbsp;试卷总分:${dto.rule.totalScore }分</h3>
    </div>
    <div class="content">
        <div class="sc">
            <h3>一、单项选择题(共${dto.singleList.size() }${dto.rule.testType==1?").":"" }
                <c:if test="${dto.rule.testType!=1 }">
                    ，每题${dto.rule.scScore/dto.rule.scNumber }分).
                </c:if></h3>
            <c:forEach items="${dto.singleList}" var="single" varStatus="st">
                <input type="hidden" name="cdto.single[${st.index }]" value="${scId }"/>
                <input type="hidden" name="cdto.singleAnswer[${st.index }]" value="none"/>
                <div>
                    <p>${st.count }、${single.question }
                        <c:if test="${dto.rule.testType==1 }">
                            （${single.score }分）
                        </c:if>
                    </p>
                    <p>
                        <input type="radio" name="single${single.choiceId}" id="s${single.choiceId}A" value="A"><label
                            for="s${scId }A">A、${single.answerA }</label>
                    </p>
                    <p>
                        <input type="radio" name="single${single.choiceId}" id="s${single.choiceId}B" value="B"><label
                            for="s${single.choiceId}B">B、${single.answerB }</label>
                    </p>
                    <p>
                        <input type="radio" name="single${single.choiceId}" id="s${single.choiceId}C" value="C"><label
                            for="s${single.choiceId}C">C、${single.answerC }</label>
                    </p>
                    <p>
                        <input type="radio" name="single${single.choiceId}" id="s${single.choiceId}D" value="D"><label
                            for="s${single.choiceId}D">D、${single.answerD }</label>
                    </p>
                </div>
                <br/>
            </c:forEach>
        </div>
        <div class="mc">
            <h3>二、多选题(共${dto.multipleList.size() }题
                ${dto.rule.testType==1?").":"" }
                <c:if test="${dto.rule.testType!=1 }">
                    ，每题${dto.rule.mulScore/dto.rule.mulNumber }分).
                </c:if></h3>
            <c:forEach items="${dto.multipleList}" varStatus="st" var="multiple">
                <input type="hidden" name="cdto.multipleAnswer[${st.index }]" value="none"/>
                <input type="hidden" name="cdto.multiple[${st.index }]" value="${mcId }"/>
                <div>
                    <p>${st.count }、${multiple.question }
                        <c:if test="${dto.rule.testType==1 }">
                            （${multiple.score }分）
                        </c:if>
                    </p>
                    <p>
                        <input type="checkbox" name="multiple${multiple.choiceId }" id="${multiple.choiceId }A"
                               value="A"><label for="${multiple.choiceId }A">A、${multiple.answerA }</label>
                    </p>
                    <p>
                        <input type="checkbox" name="multiple${multiple.choiceId }" id="${multiple.choiceId }B"
                               value="B"><label for="${multiple.choiceId }B">B、${multiple.answerB }</label>
                    </p>
                    <p>
                        <input type="checkbox" name="multiple${multiple.choiceId }" id="${multiple.choiceId }C"
                               value="C"><label for="${multiple.choiceId }C">C、${multiple.answerC }</label>
                    </p>
                    <p>
                        <input type="checkbox" name="multiple${multiple.choiceId }" id="${multiple.choiceId }D"
                               value="D"><label for="${multiple.choiceId }D">D、${multiple.answerD }</label>
                    </p>
                </div>
                <br/>
            </c:forEach>
        </div>
        <div class="blank">
            <h3>三、填空题(共${dto.blankList.size() }题${dto.rule.testType==1?").":"" }
                <c:if test="${dto.rule.testType!=1 }">
                    ，每题${dto.rule.bkScore/dto.rule.bkNumber }分).
                </c:if></h3>
            <c:forEach items="${dto.blankList}" var="blank" varStatus="st">
                <input type="hidden" name="cdto.blank[${st.index }]" value="${blankId }"/>
                <div>
                    <p>${st.count }、${blank.question }
                        <c:if test="${dto.rule.testType==1 }">
                            （${blank.score }分）
                        </c:if>&nbsp;&nbsp;&nbsp;<input class="bl" type="text" name="blank${blank.blankId }"></p>
                </div>
                <br/>
            </c:forEach>
        </div>
        <div class="judge">
            <h3>四、判断题(共${dto.judgeList.size() }题${dto.rule.testType==1?").":"" }
                <c:if test="${dto.rule.testType!=1 }">
                    ，每题${dto.rule.jdScore/dto.rule.jdNumber }分).
                </c:if></h3>
            <c:forEach items="${dto.judgeList}" var="judge" varStatus="st">
                <input type="hidden" name="cdto.judge[${st.index }]" value="${judgeId }"/>
                <input type="hidden" name="cdto.judgeAnswer[${st.index }]" value="none"/>
                <div>
                    <p>${st.count }、${judge.question }
                        <c:if test="${dto.rule.testType==1 }">
                            （${judge.score }分）
                        </c:if>&nbsp;&nbsp;&nbsp;
                        <input type="radio" name="judge${judge.judgeId }" value="1">√
                        <input type="radio" name="judge${judge.judgeId }" value="2">×
                    </p>
                </div>
                <br/>
            </c:forEach>

        </div>
        <div class="subject">
            <h3>五、问答题(共${dto.subjectiveList.size() }题${dto.rule.testType==1?").":"" }
                <c:if test="${dto.rule.testType!=1 }">
                    ，每题${dto.rule.subScore/dto.rule.subNumber }分).
                </c:if></h3>
            <c:forEach items="${dto.subjectiveList}" var="subjective" varStatus="st">
                <input type="hidden" name="cdto.subjectAnswer[${st.index }].subjectId" value="${subjectId }"/>
                <input type="hidden" name="cdto.subjectAnswer[${st.index }].sbaTitle" value="${subjectTitle }"/>
                <div>
                    <p>${st.count }、${subjective.question }
                        <c:if test="${dto.rule.testType==1 }">
                            （${subjective.score }分）
                        </c:if></p>
                    <span>答案:</span>
                    <textarea name="subjective${subjective.subId }"></textarea>
                </div>
                <br/>
            </c:forEach>
        </div>
    </div>
</div>
</body>
</html>